<form id="courseForm">
    <input name="id" type="hidden" th:value="${course?.id}">
    <div class="form-group row">
        <label for="courseName" class="col-sm-2 col-form-label">课程名称</label>
        <div class="col-sm-10">
            <input type="text" th:value="${course?.courseName}" name="courseName" class="form-control" id="courseName"
                   placeholder="填写课程名称" required>
            <div class="invalid-feedback">请填写课程名称</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="remarks" class="col-sm-2 col-form-label">课程备注</label>
        <div class="col-sm-10">
            <input type="text" th:value="${course?.remarks}" name="remarks" class="form-control"
                   id="remarks"
                   placeholder="填写课程备注" required>
            <div class="invalid-feedback">请填写课程备注</div>
        </div>
    </div>

    <div class="form-group row">
        <label for="d-pname" class="col-sm-2 col-form-label">是否少儿课程:</label>
        <div class="col-sm-10">
            <select  name="isChild" id="d-pname" th:with="type=${@dict.getIsChildList()}" class="form-control m-b" required>
                <option th:each="dict : ${type}" th:text="${dict.key}" th:value="${dict.value}"
                ></option>
            </select>

        </div>
    </div>

    <div class="form-group col-xs-12" hidden>
        <label class="control-label">是否少儿课程:</label>
        <div class="ml-3">
            <div class="icheck-primary icheck-inline">
                <input type="radio" id="top_on" name="isChild" value="1"   th:checked="@{(${course?.isChild == 1}? 'true' : 'false')}"/>
                <label for="top_on">少儿课程</label>
            </div>
            <div class="icheck-primary icheck-inline">
                <input type="radio" id="top_off" name="isChild" value="2" th:checked="@{(${course?.isChild == 2}? 'true' : 'false')}"/>
                <label for="top_off">非少儿课程</label>
            </div>
        </div>
    </div>




</form>



